<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:import href="/livcos.org/web/sys/resolver.xsl"/>
	
	<xsl:variable name="docPath" select="'/livcos.org/web'"/>

	<!-- special views -->
	
	<xsl:template match="uri[@relative = 'css/styles.css']">
		<access obj="{$docPath}/{@relativeName}" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'Intro.html']">
		<access obj="{$basePath}/{@relativeName}" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'AppleCorp/BusinessPlan.html']">
		<access obj="{$basePath}/{@relativeName}" scope="view"/>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'gui/Manual.html']">
		<access obj="{$docPath}/document" scope="view">
			<param key="ref" value="/livcos.org/LivCos/data/project/Web/Manual"/>
		</access>
	</xsl:template>
	
	<xsl:template match="uri[@relative = 'Playground.pdf']">
		<access obj="{$docPath}/style/fo/pdf" scope="view">
			<param key="ref" value="{$dataPath}/{@relativeName}"/>
		</access>
	</xsl:template>
	
	<!-- map special paths -->

  <xsl:template match="uri[starts-with(@relative, 'gui/image/')]">
    <access obj="/livcos.org/LivCos/data/project/Web/image/{@name}" scope="view"/>
  </xsl:template>
  
</xsl:stylesheet>
